package com.chixing.ih.module.task.service;

import com.chixing.ih.module.task.pojo.DTO.OrderDTO;
import com.chixing.ih.module.task.pojo.DTO.OrderListDTO;
import com.chixing.ih.module.task.pojo.DTO.ProCommentDTO;
import com.chixing.ih.module.task.pojo.DTO.TaskShowDTO;
import com.chixing.ih.module.task.pojo.Order;
import com.chixing.ih.util.PageRequest;

import java.util.List;

/**
 * 目的:
 *
 * @author ：zcw
 * @version: 1.0  2020/9/26 16:52
 */
public interface IOrderService {

    int consentApplication(Order order);

    int insertOne(Order order);

    Order getOne(Long orderId);

    Order findOne(Long taskId);

    List<OrderListDTO> findAll(PageRequest pageRequest);

    List<TaskShowDTO> findCompletedTaskSuccess(Long userId);

    List<TaskShowDTO> findCompletedTaskFailure(Long userId);

    List<TaskShowDTO> findCompletedEmploymentSuccess(Long userId);

    List<TaskShowDTO> findCompletedEmploymentFailure(Long userId);

    //查询我接受进行中任务
    List<TaskShowDTO> findProgressTask(Long userId);

    //查询我发布进行中任务
    List<TaskShowDTO> findProgressEmployment(Long userId);

    //申请结算
    int applicationSettlement(Order order);

    //申请退款
    int applyRefund(Order order);

    //查询订单总数
    long orderTotalNumber();

    //修改订单
    int updateOrder(Order order);

    ProCommentDTO getPendingComOrder(Long orderId);

    OrderDTO getOneOrder(Long orderId);
}
